<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>练习二</title>
</head>
<body>
  <script>
    function print(n, m) {
      var str = "";
      for (let i = 0; i < n; i++) {
        for (let j = 0; j < m; j++) {
            str = str + "@";
        }
        str = str + "\n";
      }
      console.log(str);
    }

    let n = Math.floor(Math.random()*100 + 1);
    let m = Math.floor(Math.random()*100 + 1);
    console.log(n);
    console.log(m);
    print(n,m)
  </script>
</body>
</html>